package com.infore.authorityManagement.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.data.annotation.Transient;

/**   
 * @ClassName:  UserLoginInfo   
 * @Description:用户登录信息实体类
 * @author: thb 
 * @date:   2019年1月11日 下午4:57:48   
 *     
 * @Copyright: 2019 http://www.inforeenviro.com Inc. All rights reserved. 
 * 注意：本内容仅限于宇星科技发展（深圳）有限公司内部传阅，禁止外泄以及用于其他的商业目 
 */
@Entity
@Table(name = "SYS_USER_LOGING_INFO")
public class UserLoginInfo implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Id
    @Column(name = "id")
	private String id;				//主键id
	
	@Column(name = "USER_NAME")
	private String userName;		//用户名称
	
	@Column(name = "USER_ACCOUNT")
	private String userAccount;		//用户账号
	
	@Column(name = "LOGIN_TIME")
	private Date loginTime;	//登录时间
	
	@Column(name = "LOGOUT_TIME")
	private Date logoutTime;	//注销时间
	
	@Column(name = "LOGIN_TYPE")
	private Integer loginType;		//操作类型
	
	@Column(name = "SEX")
	private Integer sex;			//性别
	
	@Column(name = "ORG_ID")
	private String orgId;			//部门id
	
	@Column(name = "IP")
	private String ip;			//部门id
	
	@Transient
	private String startTime;	//开始时间(作为查询参数)
	
	@Transient
	private String endTime;		//结束时间(作为查询参数)

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserAccount() {
		return userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public Date getLogoutTime() {
		return logoutTime;
	}

	public void setLogoutTime(Date logoutTime) {
		this.logoutTime = logoutTime;
	}

	public Integer getLoginType() {
		return loginType;
	}

	public void setLoginType(Integer loginType) {
		this.loginType = loginType;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
}
